<template>
  <div class="comInfo">
    <el-form
      :model="ruleForm"
      ref="ruleForm"
      label-width="100px"
      class="demo-ruleForm"
    >
      <el-form-item label="企业名称">
        <el-input disabled v-model="ruleForm.name"></el-input>
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input disabled v-model="ruleForm.companyAddress"></el-input>
      </el-form-item>

      <el-form-item label="公司电话">
        <el-input disabled v-model="ruleForm.companyPhone"></el-input>
      </el-form-item>

      <el-form-item label="邮箱">
        <el-input disabled v-model="ruleForm.mailbox"></el-input>
      </el-form-item>

      <el-form-item label="备注">
        <el-input disabled v-model="ruleForm.remarks"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getCompanyById } from '@/api/setting'
import { mapGetters } from 'vuex'
export default {
  data () {
    return {
      ruleForm: {}
    }
  },
  computed: {
    ...mapGetters(['companyId'])
  },
  async created () {
    const res = await getCompanyById(this.companyId)
    console.log(res)
    this.ruleForm = res
  }
}
</script>

<style lang="scss"></style>
